package com.yipao.db.domain.goods;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品配方属性
 *
 * @author tianhao
 * @date 2020/5/14 18:45
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsFormulaAttr {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 编码
     * 温度 temp
     * 甜度 sweet
     * 浓度 dense
     */
    private String code;
    /**
     * 量度名称
     */
    private String unitName;
    /**
     * 值
     */
    private String value;
    /**
     * 设备参数
     */
    private String devParam;
    /**
     * 逻辑删除
     */
    private Integer deleted;

    public GoodsFormulaAttr(Integer id,String code, String unitName, String value, String devParam) {
        this.id = id;
        this.code = code;
        this.unitName = unitName;
        this.value = value;
        this.devParam = devParam;
    }

    public GoodsFormulaAttr(String code, String unitName, String value, String devParam) {
        this.code = code;
        this.unitName = unitName;
        this.value = value;
        this.devParam = devParam;
    }
}
